package view

import (
	"log"

	"fyne.io/fyne"
	"fyne.io/fyne/widget"
)

type iconView struct {
	widget.Icon
}

func NewIconView(res fyne.Resource) *iconView {
	icon := &iconView{}
	icon.ExtendBaseWidget(icon)
	icon.SetResource(res)
	return icon
}

func (t *iconView) Tapped(e *fyne.PointEvent) {
	log.Println("I have been left tapped at", e)
}

func (t *iconView) TappedSecondary(e *fyne.PointEvent) {
	log.Println("I have been right tapped at", e)
}

func (t *iconView) DoubleTapped(e *fyne.PointEvent) {
	log.Println("I have been double tapped at", e)
}
